import request from '@/utils/request'

// 查询接地电阻传感器列表
export function listResistance(query) {
  return request({
    url: '/system/resistance/list',
    method: 'get',
    params: query
  })
}

// 查询接地电阻传感器详细
export function getResistance(resistanceId) {
  return request({
    url: '/system/resistance/' + resistanceId,
    method: 'get'
  })
}

// 新增接地电阻传感器
export function addResistance(data) {
  return request({
    url: '/system/resistance',
    method: 'post',
    data: data
  })
}

// 修改接地电阻传感器
export function updateResistance(data) {
  return request({
    url: '/system/resistance',
    method: 'put',
    data: data
  })
}

// 删除接地电阻传感器
export function delResistance(resistanceId) {
  return request({
    url: '/system/resistance/' + resistanceId,
    method: 'delete'
  })
}
